import config from '../../utils/config';

export default function ProductManageAPI(api) {
  return {
    //查询
    findAll: (query) => api.get(`${config.interfaces.type1}asset-split/asset-split-list-basic-info/find-product`, query),
    // 新增&编辑
    addAndEdit: (query) => api.post(`${config.interfaces.type1}assetSplit/asset-split-product-basic-info/saveOrUpdateProduct`, query),
    // 删除
    deleteData: (query) => api.get(`${config.interfaces.type1}assetSplit/asset-split-product-basic-info/deleteProduct`, query),
    // 根究id查询产品信息页面的form表单内容
    queryById: (query) => api.get(`${config.interfaces.type5}portfolio-server/maatProduct/queryById`, query),
  };
}
